# -*- coding: utf-8 -*-
"""
Created on Tue Feb 13 10:07:16 2018

@author: SUN
"""

import os
from PIL import Image,ImageChops,ImageOps,ImageDraw

ImgRootDir = unicode('D:\\Dev\\ImageProcessing\\电镜图像\\缩放后\\',"utf-8")
#ImgRootDir= 'D:/Dev/ImageProcessing/ITP-release-beta'
ImgSubDir = ['1. 韧窝','2. 解理','3. 准解理','4. 沿晶','5. 疲劳']
TargetCount = 200

if __name__=="__main__":
    a = os.walk(ImgRootDir)
    for root, dirs, files in os.walk(ImgRootDir):
        print(root) #当前目录路径
        print(dirs) #当前路径下所有子目录
        print(files) #当前路径下所有非目录子文件
#    for root, dirs, files in os.walk(ImgRootDir):
#        for SubDir in dirs:
#            # scan all files in SubDir
#            ImgFile = os.walk(ImgRootDir + SubDir).filenames
#

    #ImgIndex = numpy.random.random()*
